﻿<!--#include file="../Inc/easp/easp.asp"-->
<!--#include file="../Inc/conn1.asp"-->
<!--#include file="../inc/checklogin.asp"-->
<!--#include file="../inc/easyide.asp"-->
<% CheckLogin("index.asp") %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Change Password</title>
<link rel="stylesheet" type="text/css" href="../css/theme.css" />
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<script type="text/javascript">
	var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
	document.writeln('<link rel="stylesheet" type="text/css" href="../css/' + StyleFile + '">');
</script>
<script language="javascript" type="text/javascript">
	function checkform(obj)
	{
		if(obj.password.value=="")
		{
			alert("Please Input Password!");
			obj.password.focus();
			return false;
		}
		
		if(obj.password1.value=="")
		{
			alert("Please Input Password Again!");
			obj.password1.focus();
			return false;
		}
		
		if (obj.password1.value != obj.password.value)
    {
  	  alert("Password is not consistent!");
  	  obj.password.focus();
  	  return false;
    }
		
		return true;
	}	
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="../css/ie-sucks.css" />
<![endif]-->
</head>
<body>
<div id="container">
	<div id="header">
    <div id="divAccount" style="float:right;">
        <a href="../user/account.asp" style="color:white">Account</a>&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="../inc/logout.asp" style="color:white">Logout</a>
      </div>
		<h2>Change Password</h2>
		<div id="topmenu">
			<ul>
				<li><a href="../main.asp">Home</a></li>
				<%
				   If Session("Authority")="0" Then 
				     Easp.wc "<li><a href='../Country/index.asp'>Country</a></li>"
				   End if
				%>
				<li><a href="../holiday/index.asp">Holiday</a></li>
				<li><a href="../Times/index.asp">Times</a></li>
				<% 
				    If Session("Authority")="0" Then 
				        Response.Write("<li class=""current""><a href='#'>User</a></li>")
				    End if
				%>
				<li><% If Session("Passed")=true Then %><a href="../inc/logout.asp">Logout</a><% End If %></li>
			</ul>
		</div>
	</div>
	<div id="top-panel">
		<div id="panel">
			<ul>
			  <li><a href="<%=request.serverVariables("Http_REFERER")%>" class="goback">GoBack</a></li>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="rightnow">
				<h3 class="reallynow"> 
					<span>Change Password</span> 					
					<br />
				</h3>				
					<form id="form" action="Changepassword.asp" method="post" onSubmit="return checkform(this);" >
				    <div id="box">
					    <table style="width:500px;text-align: center;margin:auto;">						    
						    <tbody>						    	
						      <tr>
						      	<td style="border:0">Enter New Password:</td>
						        <td style="border:0">
						        	<input id="password" name="password" type="password" tabindex="1" class="ipt" />				        				        	
						        </td>
						      </tr>
						      <tr>
						      	<td style="border:0">Re-Enter Password:</td>
						      	<td style="border:0">
						      		<input id="password1" name="password1" type="password" tabindex="1" class="ipt" />
						      	</td>						      	
						      </tr>
						    </tbody>
						  </table>
						  <div id="pager">						  	
						  	<input type='hidden' id='uid' name='uid' value='<%=Session("ID") %>' />
						  	<input class='btn' type='submit' name='submit' value='Alter' />
						    <input class='btn' type='reset' name='reset' value='Reset' />
						  </div>
						</div>
					</form>				
			</div>
		</div>
	</div>
	<!--#include file="../inc/footer.asp" -->
</div>
</body>
</html>

